#ifndef _BSP_TIM3_H
#define _BSP_TIM3_H

#include "bsp.h"

#define PWM1_PORT               GPIOA
#define PWM1_PIN                GPIO_PIN_6
#define PWM1_PORT_CLK_ENABLE    __HAL_RCC_GPIOA_CLK_ENABLE

#define PWM2_PORT               GPIOA
#define PWM2_PIN                GPIO_PIN_7
#define PWM2_PORT_CLK_ENABLE    __HAL_RCC_GPIOA_CLK_ENABLE

extern TIM_HandleTypeDef htim3;
void MX_TIM3_Init(void);
void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim);
void PWM1_Setus(uint32_t us);
void PWM2_Setus(uint32_t us);
#endif


